package com.zpark.controller;

import com.zpark.pojo.UserInfo;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@RestController
@RequestMapping("/userInfo")
@Validated
public class UserInfoController {
    @RequestMapping("/saveUserInfo")
    public UserInfo saveUserInfo(@Valid UserInfo userInfo){
        //save userInfo:将userInfo进行保存
        //userInfoService.save(userInfo);
        return userInfo;
    }
}
